import { axios } from '@/utils/request'


/**
 * 学校搜索
 * @param {*} keyword 
 * @returns 
 */
export function getSchoolDownList(keyword) {
    return axios({
        url: `/admin/school/getDownList`,
        method: 'get',
        params: { keyword, pageNum: 1, pageSize: 50 }
    })
}

/**
 * 学院搜索
 * @param {*} keyword 
 * @returns 
 */
export function getSchoolCollegesDownList(keyword) {
    return axios({
        url: `/admin/school/colleges/getDownList`,
        method: 'get',
        params: { keyword, pageNum: 1, pageSize: 50 }
    })
}

/**
 * 专业搜索
 * @param {*} keyword 
 * @returns 
 */
export function getSchoolSpecialtyDownList(keyword) {
    return axios({
        url: `/admin/school/specialty/getDownList`,
        method: 'get',
        params: { keyword, pageNum: 1, pageSize: 50 }
    })
}

/**
 * 国家搜索
 * @param {*} keyword 
 * @returns 
 */
export function getOrgCountrysDownList(keyword) {
    return axios({
        url: `/admin/org/countrys/getDownLis`,
        method: 'get',
        params: { keyword, pageNum: 1, pageSize: 50 }
    })
}

/**
 * 单位搜索
 * @param {*} keyword 
 * @returns 
 */
export function getTianyanchaSearch(keyword) {
    return axios({
        url: `/admin/tianyancha/search`,
        method: 'get',
        params: { keyword, pageNum: 1, pageSize: 50 }
    })
}


/**
 * 单位数据回填
 * @param {*} data 
 * @returns 
 */
export function getTianyanchaDetail(data) {
    return axios({
        url: `/admin/tianyancha/detail`,
        method: 'post',
        data
    })
}



